import { createUserList, friendList } from "./list";

export default [
  // 获取用户信息接口
  {
    url: "/api/user/friend/list",
    method: "get",
    response: (request: any) => {
      return {
        code: 200,
        data: friendList,
      };
    },
  },
  {
    url: "api/user/find:id",
    method: "get",
    response: (request: any) => {
      const { id } = request.query;
      return {
        code: 200,
        data: {
          ...createUserList()[0],
        },
      };
    },
  },
];
